-- GENERATED SPELL FOR [Crushridge Mage] --


function spell0_2255(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2255', 30274, 1)
end

function spell1_2255(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2255', 7000, 1)
end

function Sorts_2255(pUnit, Event)
local choix_sorts_2255 = math.random(0, 1)
if choix_sorts_2255 == 0 then
pUnit:RegisterEvent('spell0_2255', 1, 1)
end
if choix_sorts_2255 == 1 then
pUnit:RegisterEvent('spell1_2255', 1, 1)
end
end

function mob2255_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2255', math.random(1500, 3000), 1)
end

function mob2255_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2255_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2255_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2255, 1, 'mob2255_Action')
RegisterUnitEvent(2255, 2, 'mob2255_Leave')
RegisterUnitEvent(2255, 3, 'mob2255_Kill')
RegisterUnitEvent(2255, 4, 'mob2255_Die')
